@isTest
public class BorrowGoodsDetailHandlerTest
{
    static testMethod void BorrowGoodsDetailHandlerTest()
    {
       //新建产品 
        Product__c p = TestUtils.createProduct();
        p.bggsjhdj__c = 10.0; 
        insert p ;
        
        ///价格
        Price__c price = TestUtils.createPrice();
        price.Product__c = p.Id;
        price.Company__c = '四川省迈克实业有限公司';
        price.MarketPrice__c = 10.0;
        insert price;
       //借货审批
        ProductOutOrIn__c  poi = new ProductOutOrIn__c();
        insert poi;
        ///借货
        BorrowGoodsDetail__c bgd = new BorrowGoodsDetail__c();
        bgd.Inventory__c = p.Id;
        bgd.BorrowDetail__c = poi.Id;
        insert bgd;
        
    }
}